import request from '@/utils/request'
// 获取初始表单数据
/**
 * 获取合作商list
 * @param {*} data
 */
export const getList = (params) => {
  return request({
    url: 'user-service/partner/search',
    method: 'GET',
    params
  })
}
/**
 * 搜索合作商
 * @param {*} data
 */
export const searchList = (params) => {
  return request({
    url: '/user-service/partner/search',
    method: 'GET',
    params
  })
}
/**
 * 新增合作商
 * @param {*} data
 */
export const addPointList = (data) => {
  return request({
    url: '/user-service/partner',
    method: 'POST',
    data
  })
}
/**
 * 编辑的合作商
 * @param {*} id
 */
export const editStreet = (id, data) => {
  return request({
    url: `/user-service/partner/${id}`,
    method: 'PUT',
    data

  })
}
/**
 * 重置密码
 *  * @param {*} id
 */
export const password = (id) => {
  return request({
    url: `/user-service/partner/resetPwd/${id}`,
    method: 'PUT'

  })
}

/**
 * 删除合作商
 * @param {*} id
 */
export const del = (id) => {
  return request({
    url: `/user-service/partner/${id}`,
    method: 'DELETE'
  })
}

